<template>
  <table>
    <tr>
      <td>序号</td>
      <td>订单单号</td>
      <td>入账金额</td>
      <td>时间</td>
    </tr>
    <tr v-for="(v, i) in arr" :key="i">
      <td>{{ i }}</td>
      <td>{{v.proname}}</td>
      <td>{{v.bnum*v.oriprice}}元</td>
      <td>{{ v.createtime.slice(0,10)}}</td>
    </tr>
  </table>
</template>

<script>
import { orderAll } from "../../../api/hjn/index.js";
export default {
    data(){
        return{
            arr:[]
        }
    },
  mounted() {
    orderAll(1,7).then((ok) => {
      console.log(ok.data.records);
      this.arr=ok.data.records
    });
  },
  computed:{

  }
};
</script>

<style scoped>
table {
  border-collapse: collapse;
}
tr,
td {
  border: 1px solid #eee;
  height: 20px;
  line-height: 20px;
  text-align: center;
}
td:first-child {
  width: 50px;
}
td {
  width: 140px;
}
</style>